//
//  JQFYTicketInfo_FirstSection.m
//  JQFY
//
//  Created by apple on 2017/10/13.
//  Copyright © 2017年 yannis. All rights reserved.
//

#import "JQFYTicketInfo_FirstSection.h"

@interface JQFYTicketInfo_FirstSection ()

@property (nonatomic ,strong) UIImageView *imgView;
@end

@implementation JQFYTicketInfo_FirstSection
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self setupUI];
    }
    return self;
}

-(void) setupUI{
    
    UIView *contantView = [[UIView alloc]init];
    [self.contentView addSubview:contantView];
    [contantView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.leading.trailing.mas_equalTo(self.contentView);
        make.bottom.mas_equalTo(self.contentView).offset(-15);
    }];
    contantView.backgroundColor = [UIColor clearColor];
    _imgView = [[UIImageView alloc] init];
    [contantView addSubview:_imgView];
    [_imgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(contantView);
    }];

}

-(void) setCellImage :(NSInteger)index{
    NSString *str= [NSString stringWithFormat:@"ticket_info_section%ld",(long)index];
    _imgView.image = [UIImage imageNamed:str];
}

@end
